package br.com.exemplo.sqlite;




import br.com.exemplo.sqlite.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class BemVindo extends Activity {

	Button btnUsuario, btnRota;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.bemvindo);

		btnUsuario = (Button) findViewById(R.id.btnUsuarioBemVindo);
		btnUsuario.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				cadastroUsuario();
			}
		});

		btnRota = (Button) findViewById(R.id.btnRotasBemVindo);
		btnRota.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				cadastroRota();

			}
		});
	}

	public void cadastroUsuario() {
		Intent i = new Intent();
		i.setClass(this, Principal.class);
		startActivity(i);
	}

	public void cadastroRota() {
		Intent i = new Intent();
		i.setClass(this, PrincipalRota.class);
		startActivity(i);
	}

}
